package com.simple.portal.bo.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.simple.portal.bo.IOrganizationBO;
import com.simple.portal.dao.IOrganizationDAO;
import com.simple.portal.vo.OrganizationVO;

@Service("organizationBO")
@Transactional(propagation=Propagation.REQUIRED,readOnly=true)
public class OrganizationBOImpl implements IOrganizationBO {
	
	@Autowired
	private IOrganizationDAO  organizationDAO;
	
	@Override
	public OrganizationVO findById(String fiId) {
		return organizationDAO.findById(fiId);
	}

	@Override
	public List<OrganizationVO> findAll() {
		return organizationDAO.findAll();
	}

	@Override
	public List<OrganizationVO> findOrganizationVOList(final String userId){
		return organizationDAO.findOrganizationVOList(userId);
		
	}

	@Override
	public List<OrganizationVO> findProviderList(String userId,String organizationType) {
		
		return organizationDAO.findProviderList(userId,organizationType);
	}

	@Override
	public List<OrganizationVO> findProvider(String applicationId) {
		
		return organizationDAO.findProvider(applicationId);
	}

	
}
